feat: standardize ims credential env vars, make them predictable and easy to add to actions#892
Closed
MichaelGoberling wants to merge 2 commits intomasterfrom
Closed
feat: standardize ims credential env vars, make them predictable and easy to add to actions#892MichaelGoberling wants to merge 2 commits intomasterfrom
MichaelGoberling wants to merge 2 commits intomasterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Member
|
Since this is a breaking change, an idea that will not break existing users: The only caveat is, the Tested using:
require('@dotenvx/dotenvx').config()
console.log('FOO', process.env.FOO)
console.log('BAR', process.env.BAR)
FOO="the quick brown fox"
BAR="$FOO"
❯ node index.js
[dotenvx@1.51.4] injecting env (2) from .env
FOO the quick brown fox
BAR the quick brown foxWe do special |
moritzraho
reviewed
Jan 15, 2026
| * @returns {object} Key-value pairs of legacy IMS environment variables | ||
| * @private | ||
| */ | ||
| function formatLegacyImsCredentialsForEnv (credentials) { |
Member
There was a problem hiding this comment.
why do we have to redo this? This is what we currently write on aio app use no?
Member
Member
|
Proposed alternative: #899 |
Member
|
closing as alternative has been merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Breaking change
Proposing to make it so ims credential env vars are easy to pass to actions.
Today, when we
aio app useor app init, we get something like this in .env:This PR proposes standardizing these properties to something easier to predict, the solution is to prefix each field in the credential with
IMS_:And then they can be passed to Runtime actions:
For projects with multiple credentials, the env vars are postfixed with _{index}:
Related Issue
N/A
Motivation and Context
Make it easier to use IMS credential env vars
How Has This Been Tested?
npm run testaio app useandaio app initScreenshots (if appropriate):
Types of changes
Checklist: